/*
 * @Author: your name
 * @Date: 2021-09-06 10:54:32
 * @LastEditTime: 2021-09-06 16:30:02
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\5-javascript\day11\test.js
 */
window.onload = function() {
    var node = document.getElementsByClassName("one")[0];
    console.log(node.getAttribute("class"));
    console.log(document.getElementById("myDiv"));
    console.log(document.getElementById("class"));
    console.log(document.getElementById("id"));
    console.log(document.getElementById("style"));
    myDiv.removeAttribute("id");

    var myImg = document.getElementsByTagName("img")[0];
    console.log(myImg.getAttribute("src"));
    console.log(myImg.getAttribute("alt"));
    console.log(myImg.getAttribute("style"));
}